Avoid infloop in next-frame during frame creation.
authorChong Yidong <cyd@gnu.org>
Thu, 23 Feb 2012 07:28:21 +0000 (15:28 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 23 Feb 2012 07:28:21 +0000 (15:28 +0800)
commit97c3fc4a72aeff7012e4edd3b0b3b1e7079147ef
tree4c0f96cf0da535fbed9b18c4f3983e8364e338f6
parent7fc589ab211ec79cdbf9aa4934cf794966527ea7
Avoid infloop in next-frame during frame creation.

See thread at http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00573.html

* src/window.c (inhibit_window_configuration_change_hook): New var.
(run_window_configuration_change_hook): Obey it.

* src/xfns.c (Fx_create_frame): Avoid window-configuration-change-hook
call when setting menu-bar-lines and tool-bar-lines parameters.
(unwind_create_frame_1): New helper function.
src/ChangeLog
src/window.c
src/window.h
src/xfns.c